<?php
/**
 * Created by PhpStorm.
 * User: stupboy
 * Date: 2018/6/20
 * Time: 14:55
 * Mail:87658989@qq.com
 */

namespace app\adminapi\validate;

use app\base\validate\BaseValidate;

class RefuelRecordValidate extends BaseValidate
{
    protected $rule = [
        'fields'    => 'checkField',
        'where_json'=> 'checkJson',
        'page'      => 'number',
        'pagenum'   => 'number',
        'counts'    => 'number'
    ];


    protected $default = [
        'page'   =>1,
        'pagenum'=>10,
        'fields' =>'*',
        'counts' =>9999999
    ];

    public $scene = [
        'list'=>['fields','where_json','page','pagenum'],
        'download'=>['fields','where_json','counts']
    ];
}